<!-- 联系人信息（默认） -->
<template>
  <div class="materials-card attachment-info mt-20">
    <div class="p-title mb-12">联系人信息（默认）</div>
    <el-form
      class="form-inline-wrap mt-12"
      ref="ruleFormRef"
      label-position="top"
      require-asterisk-position="right"
      :inline="true"
      :rules="rules"
      :model="params"
    >
      <el-form-item label="代理机构名称" prop="agencyName">
        <el-input v-model="params.agencyName" placeholder="请输入代理机构名称"></el-input>
      </el-form-item>
      <el-form-item label="代理人名称" prop="nameOfAgent">
        <el-input v-model="params.nameOfAgent" placeholder="请输入代理人名称"></el-input>
      </el-form-item>
      <el-form-item label="联系人名称" prop="contactName">
        <el-input v-model="params.contactName" placeholder="请输入联系人名称"></el-input>
      </el-form-item>
      <el-form-item label="联系人电话" prop="contactPhone">
        <el-input v-model="params.contactPhone" placeholder="请输入联系人电话"></el-input>
      </el-form-item>
      <el-form-item label="联系人邮箱" prop="contactEmail">
        <el-input v-model="params.contactEmail" placeholder="请输入联系人邮箱"></el-input>
      </el-form-item>
      <el-form-item label="邮政编码" prop="postalCode">
        <el-input v-model="params.postalCode" placeholder="请输入邮政编码"></el-input>
      </el-form-item>
      <el-form-item label="联系人地址" prop="contactAddress" class="w-100">
        <el-input v-model="params.contactAddress" placeholder="请输入联系人地址"></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script lang="ts" setup>
import { ref, reactive } from "vue";

const rules = reactive({
  agencyName: [{ required: true, message: "请输入代理机构名称" }],
  nameOfAgent: [{ required: true, message: "请输入代理人名称" }],
  contactName: [{ required: true, message: "请输入联系人名称" }],
  contactPhone: [{ required: true, message: "请输入联系人电话" }],
  contactEmail: [{ required: true, message: "请输入联系人邮箱" }],
  postalCode: [{ required: true, message: "请输入邮政编码" }],
  contactAddress: [{ required: true, message: "请输入联系人地址" }]
});

const params = ref({
  agencyName: "",
  nameOfAgent: "",
  contactName: "",
  contactPhone: "",
  contactEmail: "",
  postalCode: "",
  contactAddress: ""
});
</script>

<style lang="scss" scoped>
.form-wrap {
  display: flex;
  justify-content: space-around;
}
</style>
